package cn.lingyangwl.agile.gateway.remote;

import cn.lingyangwl.agile.gateway.model.*;
import cn.lingyangwl.agile.model.constants.*;
import cn.lingyangwl.framework.core.response.*;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author shenguangyang
 */
@FeignClient(contextId = "systemRemoteInGateway", value = ServiceCodeCons.SYSTEM_SERVICE, url = "${server-url:}")
public interface SystemRemote {

	@GetMapping(value = "/tenant/getMainTenantId")
	Resp<String> getMainTenantId(@RequestParam("tenantId") String tenantId);

	@GetMapping(value = "/accessKey/getAccessKeyBySecretId")
	Resp<AccessKeyResp> getAccessKeyBySecretId(@RequestParam(value = "secretId") String secretId);
}
